package com.cx.proxy.coust;

/**
 * @author zhangshuai
 * @version V1.0
 * @Project Java2_26
 * @Package com.cx.proxy.coust
 * @Description:
 * @Date 2025/5/28 10:20
 */
//代理类  代理的是用户类
public class IUserProxy implements IUser {
    private IUserImpl iUser = new IUserImpl();


    @Override
    public void save() {
        System.out.println("开启静态代理");
        ILog.doLog();
        iUser.save();
        System.out.println("关闭静态代理");
    }

    @Override
    public void update() {
        System.out.println("开启静态代理");
        ILog.doLog();
        iUser.update();
        System.out.println("关闭静态代理");
    }

    @Override
    public void run() {

    }
}